package com.exercise.ThreadAttribute;

public class ThreadGroupExample {
    public static void main(String[] args) {
        ThreadGroup group = new ThreadGroup("MyThreadGroup");
        Thread thread = new Thread(group, () -> {
            System.out.println("Thread in group:" + Thread.currentThread().getThreadGroup().getName());
        });
        thread.start();
    }
}
